﻿using System;
using System.Web;

public class BasePage : System.Web.UI.Page
{
    private void Page_PreInit(object sender, EventArgs e)
    {
  
    }

    private void Page_PreRender(object sender, EventArgs e)
    {
        if (this.Title == "Untitled Page")
        {
            throw new Exception("Page title cannot be \"Untitled Page\".");
        }
    }
}
